<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>pad绑定</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  <body>
    <table border="1px red solid;" width="100%">
    	<tr>
    		<td colspan="5" align="center">
    		<a href="<%=path%>/addunitdoor.jsp">
    		<input type="button" value="添加" style="width: 100px;">
    		</a>
    		</td>
    	</tr>
    	<tr>
    		<td>id</td>
    		<td>单元</td>
    		<td>小区</td>
    		<td>pad序列号</td>
    		<td>操作</td>
    	</tr>
    	<c:forEach var="v" items="${unitdoor}">
    	<tr>
   			<td>${v.yid}</td>
   			<td>${v.number}</td>
   			<td>${v.address}</td>
   			<td>${v.idnumber}</td>
   			<td><a href="<%=path%>/unitdoor/selectOne?id=${v.yid}">修改</a></td>
    	</tr>
    	</c:forEach>
    </table>
  </body>
</html>
